#ifndef MAINTENANCE_H
#define MAINTENANCE_H

#include <QMainWindow>
#include <QString>
#include <QMainWindow>
#include <QString>
#include <QSqlTableModel>
#include "mysqlserver.h"


namespace Ui {
class maintenance;
}

class maintenance : public QMainWindow
{
    Q_OBJECT

public:
    explicit maintenance(QString name, QString pass, QString SERVER, QString PORT,QWidget *parent = nullptr);
    QString name;
    QString pass;
    QString contact;
    QString num;
    QString SQL;
    QSqlError error;
    mysqlServer mysql;
    ~maintenance();

private slots:
    void on_pushButton_clicked();

    void on_maintain_clicked();

    void on_stickers_clicked();

    void on_maintainYes_clicked();

    void on_maintainNo_clicked();

    void on_stickersYes_clicked();

    void on_tabWidget_currentChanged(int index);

    void on_nameTxtYes_clicked();

    void on_contactTxtYes_clicked();

    void on_passTxtYes_clicked();

private:
    Ui::maintenance *ui;
    QSqlTableModel *kdcModel;
};

#endif // MAINTENANCE_H
